package org.zxn.study.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.zxn.study.entity.User;
import org.zxn.study.mapper.UserMapper;
import org.zxn.study.service.UserService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName UserServiceImpl
 * @Description: TODO
 * @Author zxn
 * @Date 2025/7/10 17:05
 **/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Resource
    UserMapper userMapper;
    @Override
    public Integer add(User user) {
        return userMapper.insert(user);
    }
    @Override
    public List<User> selectAll() {
        return userMapper.selectAll();
    }
}

